'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/home', controller.home.index);
 
  router.post('/api/product', controller.product.list);

  router.post('/api/message', controller.message.list);

  router.post('/api/star/:pid', controller.star.add);
  router.delete('/api/star/:pid', controller.star.delete);

};
